package 华为OD机试B卷复用题.基础题;

import utils.MyUtil;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;

public class HJ59_敏感字段加密 {
    public static void main(String[] args) throws FileNotFoundException {
        Scanner in = new Scanner(new File("src/main/java/华为OD机试B卷复用题/基础题/input/59.txt"));
        MyUtil.START();
        Solution(in);
        MyUtil.END();
    }

    static void Solution(Scanner in) {
        int N = in.nextInt();
        in.nextLine(); // 吸收回车
        String s = in.nextLine();
        boolean yinhao = false;
        String tmp = "";
        ArrayList<String> result = new ArrayList<>();
        for (int i = 0; i < s.length(); i++) {
            char now = s.charAt(i);
            if (now == '_') {
                if (tmp.equals("")) {
                    continue;
                }
                if (yinhao) {
                    tmp += '_';
                } else {
                    result.add(tmp);
                    tmp = "";
                }
            } else {
                if (now == '\"') {
                    yinhao = !yinhao;
                }
                tmp += now;
            }
        }
        if (!tmp.equals("")) {
            result.add(tmp);
        }
        for (int i = 0; i < result.size(); i++) {
            if (i != 0) {
                System.out.print("_");
            }
            if (i == N) {
                System.out.print("******");
            } else {
                System.out.print(result.get(i));
            }
        }
    }
}
